﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyShenHeNeedBak.aspx.cs" Inherits="office_MyShenHeNeedBak" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/GeneralSelect.ascx" TagName="GeneralSelect" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>样本备案查询(审查中心)</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
    function ViewInstanceFrame(Instance, flag)//查询案件信息
    {
        var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance + "&flag=" + flag;

        window.open(strURL, 'viewer', "height=" + (screen.availHeight - 30) + " , width=" + screen.availWidth + ", top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }

    function ReturnMsg(vReturn) {
        alert("设置成功");
    }

    //设置变更原因
    function SetUpdateNotes(strIID) {
        var nReturn = confirm("确定要修改流程中表单内容吗？");
        if (nReturn) {
            var strURL = "TaskUpdateNotes.aspx?iid=" + strIID;
            window.open(strURL, 'viewer', "height=300, width=500, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
        }
    }

    //设置操作异常标志位
    function DataBak(striid) {
        var strTab = encodeURI("地图审核图件备案");
        var strURL = "WebPubManager/SerialTabUpdate.aspx?tabname=" + strTab + "&iid=" + striid;
        //window.open(strURL, 'viewer', "height=760, width=700, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=no, status=no");

        window.parent.openDivDlg("样本备案", strURL, 800, 700);
    }
</script>
<body>
    <form id="form1" runat="server">
    <div style="width: 99%; margin: 0px auto; text-align: center;">
        <table style="width: 100%; border-top-width: 0px" class="tab">
            <tr>
                <td>
                    办件类型：
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlFlow" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    送审单位：
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtName" runat="server" Width="100"></asp:TextBox>
                </td>
                <td>
                    受理编号：
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtIID" runat="server" Width="100"></asp:TextBox>
                </td>
                <td>
                    审图号:
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtSth" runat="server" Width="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    图件用途：
                </td>
                <td style="text-align: left">
                    <uc2:GeneralSelect ValidateEmpty="false" FirstEmpty="true" ID="ddlTjlb" Name="图件类别"
                        Width="170" runat="server" />
                </td>
                <td>
                    受理时间:
                </td>
                <td colspan="3" style="text-align: left">
                    自：<uc1:Calendar ID="startDate" Width="100" runat="server" />
                    到:
                    <uc1:Calendar ID="endDate" Width="100" runat="server" />
                </td>
                <td>
                    图名：
                </td>
                <td style="text-align: left">
                    <asp:TextBox runat="server" ID="txtTm" Width="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    备案情况：
                </td>
                <td style="text-align: left">
                    <uc2:GeneralSelect ValidateEmpty="false" FirstEmpty="true" ID="gsBaqk" Name="备案情况"
                        runat="server" />
                </td>
                <td>
                    抽查情况：
                </td>
                <td style="text-align: left">
                    <uc2:GeneralSelect ValidateEmpty="false" FirstEmpty="true" ID="gsCcqk" Name="抽查情况"
                        runat="server" />
                </td>
                <td>
                    审核人：
                </td>
                <td style="text-align: left">
                    <asp:TextBox runat="server" ID="txtShr" Width="100"></asp:TextBox>
                </td>
                <td style="text-align: left" colspan="2">
                    <asp:CheckBox ID="cbxTh" Text="退改" runat="server"></asp:CheckBox>
                    <asp:CheckBox ID="cbxCss" Text="曾送审" runat="server"></asp:CheckBox>
                    <asp:CheckBox ID="cbxGd" Text="已归档" runat="server"></asp:CheckBox>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <asp:Button ID="btnRefer" CssClass="input" runat="server" Text="查询" OnClick="btnRefer_Click" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gvMessage" runat="server" AllowPaging="True" Width="100%"
            ShowImportButton="true" SkinID="NewGrid" HideTextLength="18" AutoGenerateColumns="False"
            ShowCmpAndCancel="false" AllowOnMouseOverEvent="False" ShowItemNumber="True"
            CustomImportToExcel="true" AutoGenerateDeleteConfirm="True" OnRowCreated="gvMessage_RowCreated"
            ShowHideColModel="None" OnOnImportClick="gvMessage_OnImportClick" OnOnLoadData="gvMessage_OnLoadData">
            <PagerSettings Visible="true" />
            <Columns>
                <asp:TemplateField HeaderText="办件编号" ItemStyle-Width="115">
                    <ItemTemplate>
                        <a href='#' onclick='ViewInstanceFrame("<%#Eval("iid") %>","")'>
                            <%# Eval("iid") %></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="办件类型" DataField="wname" />
                <asp:BoundField HeaderText="受理编号" DataField="slh" />
                <asp:BoundField HeaderText="审图号" DataField="批准号" />
                <asp:BoundField HeaderText="图件类型" DataField="dtyt" />
                <asp:BoundField HeaderText="图名" DataField="tm" />
                <asp:BoundField HeaderText="送审单位" DataField="name" />
                <asp:BoundField HeaderText="接件时间" DataField="accepted_time" HtmlEncodeFormatString="true"
                    DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField HeaderText="备案期限" DataField="syqx" />
                <asp:TemplateField HeaderText="备案(抽检)">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlBatg" runat="server">通过</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
